/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.VipServiceGift;
import com.sasis.dao.VipServiceGiftDao;
import com.sasis.service.VipServiceGiftManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class VipServiceGiftManagerImpl extends BaseManager implements VipServiceGiftManager {
    private VipServiceGiftDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setVipServiceGiftDao(VipServiceGiftDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.VipServiceGiftManager#getVipServiceGifts(com.sasis.model.VipServiceGift)
     */
    public List getVipServiceGifts(final VipServiceGift vipServiceGift) {
        return dao.getVipServiceGifts(vipServiceGift);
    }

    /**
     * @see com.sasis.service.VipServiceGiftManager#getVipServiceGift(String id)
     */
    public VipServiceGift getVipServiceGift(final String id) {
        return dao.getVipServiceGift(new Integer(id));
    }

    /**
     * @see com.sasis.service.VipServiceGiftManager#saveVipServiceGift(VipServiceGift vipServiceGift)
     */
    public int saveVipServiceGift(VipServiceGift vipServiceGift) {
    	return dao.saveVipServiceGift(vipServiceGift);
    }

    /**
     * @see com.sasis.service.VipServiceGiftManager#removeVipServiceGift(String id)
     */
    public void removeVipServiceGift(VipServiceGift vipServiceGift) {
        dao.removeVipServiceGift( vipServiceGift);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
